package com.example.lib5.linkedList;

import java.util.Stack;

public class StackLearning {
    public static void main(String[] args) {
        Stack<String> name = new Stack<>();
        name.push("小舞");
        name.push("唐三");
        name.push("千仞雪");
        while (name.size()>0) {
            System.out.println(name.pop());
        }
    }
}
